#pragma once
#include<iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include<vector>
#include <unistd.h>
#include <sys/sysinfo.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/time.h>

#define BUFFSIZE 512
namespace libsysmonitor {
	struct NpuNode
	{
		char name[16];
		unsigned int user;
		unsigned int nice;
		unsigned int system;
		unsigned int idle;
	};
	class getNpuStat
	{
	public:
		getNpuStat();
		void get_npuocupy(NpuNode *npu);
		float get_npu_usage();
		float get_mem_usage();
		float get_swap_usage();
		
		~getNpuStat();

	private:
		NpuNode npu0, npu1;
	};
}
